import static org.junit.Assert.*;

import org.junit.Test;


public class OperadorTest {

	@Test
	public void testAgregar() {
		//Sin construir
	}

	@Test
	public void testSumar() {
		Operador test = new Operador();
		test.agregar(5.6);
		test.agregar(4.4);
		assertEquals("Valor", 10, test.sumar(), 0.001);
	}

	@Test
	public void testRestar() {
		Operador test = new Operador();
		test.agregar(6.2);
		test.agregar(8.2);
		assertEquals("Valor", 2, test.restar(), 0.001);
	}

	@Test
	public void testMult() {
		Operador test = new Operador();
		test.agregar(3);
		test.agregar(10);
		assertEquals("Valor", 30, test.mult(), 0.001);
	}

	@Test
	public void testDiv() {
		Operador test = new Operador();
		test.agregar(10.1);
		test.agregar(101);
		assertEquals("Valor", 10, test.div(), 0.001);
	}
}
